﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TbShop.Entity
{
    [Table("AspNetUsers")]
    public class AspNetUsers
    {
        public string Id { get; set; }

        [NotMapped]
        public string OprationType { set; get; }

        public int AccessFailedCount { set; get; }

        public virtual string Email { get; set; }

        public virtual bool EmailConfirmed { get; set; }

        public virtual bool LockoutEnabled { get; set; }

        public virtual DateTime? LockoutEndDateUtc { get; set; }

        public virtual string PasswordHash { get; set; }

        public virtual string PhoneNumber { get; set; }

        public virtual bool PhoneNumberConfirmed { get; set; }

        public virtual string SecurityStamp { get; set; }

        public virtual bool TwoFactorEnabled { get; set; }

        public virtual string UserName { get; set; }

        public virtual string RoleId { set; get; }

        /// <summary>
        /// 头像
        /// </summary>
        public string HeadPortrait { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 最近登录时间
        /// </summary>
        public DateTime? LastLoginTime { get; set; }
        /// <summary>
        /// 最近登录IP
        /// </summary>
        public string LastLoginIP { set; get; }
        /// <summary>
        /// 登录次数
        /// </summary>
        public int LoginCount { get; set; }
        public bool IsDeleted { set; get; }
        public DateTime CreatedDate { get; set; }
        public string CreatedBy { get; set; }

        public string PasswordMD5 { set; get; }
        public string Address { set; get; }
    }
}
